// 自动生成模板EpidemicInvestigationForm
package epidemic

// EpidemicInvestigationForm 结构体
type EpidemicInvestigationForm struct {
	ID           uint   `gorm:"primarykey;AutoIncrement" json:"id" form:"id"` // 主键ID
	Title        string `json:"title" form:"title" gorm:"column:title;comment:筛查表标题;size:100;"`
	Content      string `json:"content" form:"content" gorm:"column:content;comment:筛查表正文;"`
	Link         string `json:"link" form:"link" gorm:"column:link;comment:附件下载链接;size:200;"`
	Questions    string `json:"questions" form:"questions" gorm:"column:questions;comment:json,允许多个问题对，问题对包括问题、判定标准;size:500;"`
	Status       string `json:"status" form:"status" gorm:"column:status;comment:状态：字典值;size:50;"`
	Abnormal     int    `json:"abnormal" form:"abnormal" gorm:"column:abnormal;comment:异常统计;size:10;"`
	Company      string `json:"company" form:"company" gorm:"column:company;comment:公司;size:50;"`
	Department   string `json:"department" form:"department" gorm:"column:department;comment:部门;size:50;"`
	Organization string `json:"organization" form:"organization" gorm:"column:organization;comment:编制;size:50;"`
	Location     string `json:"location" form:"location" gorm:"column:location;comment:工作地;size:50;"`
	PublishedBy  string `json:"publishedBy" form:"publishedBy" gorm:"column:published_by;comment:发布者;size:50;"`
	PublishDate  string `json:"publishDate" form:"publishDate" gorm:"column:publish_date;comment:发布时间;"`
	UrlLink      string `json:"urlLink" form:"urlLink" gorm:"column:url_link;"`
}

// EpidemicInvestigation 结构体
// 首页信息所需字段
type EpidemicInvestigation struct {
	ID               uint   `gorm:"primarykey;AutoIncrement" json:"id" form:"id"` // 主键ID
	Title            string `json:"title" form:"title" gorm:"column:title;comment:筛查表标题;size:100;"`
	Content          string `json:"content" form:"content" gorm:"column:content;comment:筛查表正文;"`
	Link             string `json:"link" form:"link" gorm:"column:link;comment:附件下载链接;size:200;"`
	Questions        string `json:"questions" form:"questions" gorm:"column:questions;comment:json,允许多个问题对，问题对包括问题、判定标准;size:500;"`
	Status           string `json:"status" form:"status" gorm:"column:status;comment:状态：字典值;size:50;"`
	Answer           string `json:"answer" form:"answer" gorm:"column:answer;"`
	SpecialSituation string `json:"special_situation" form:"special_situation" gorm:"column:special_situation;"`
	UrlLink          string `json:"urlLink" form:"urlLink" gorm:"column:url_link;"`
}

// TableName EpidemicInvestigationForm 表名
func (EpidemicInvestigationForm) TableName() string {
	return "epidemic_investigation_form"
}
